﻿#pragma once
#include "Support/rapidjson/JsonIOHandler.h"
#include "TerrainTypeInfo.h"

class CTerrainTypeInfoReaderHandle :
	public BaseReaderHandler<_stTerrainTypeInfo>
{
public:
	CTerrainTypeInfoReaderHandle(std::unordered_map<std::wstring, _stTerrainTypeInfo>* map);
	bool HandleBool(const std::wstring& key, bool b);
	bool HandleInt(const std::wstring& key, int i);
	bool HandleDouble(const std::wstring& key, double d);
	bool HandleString(const std::wstring& key, const std::wstring& str);
	bool HandleStartObj(const std::wstring& key);
	bool HandleEndObj();
};